*{
    margin: 0;
    padding: 0;
}
body{
    background: #b3e7ce;
}
.msgBox{
    position: fixed;
    height: 50px;
    width: 100%;
    background: #fafafa;
    bottom: 0;
    left: 0;
}
.msgBox input{
    width: 80%;
    height: 100%;
    border: 1px solid blueviolet;
    box-sizing: border-box;
}
#sendBtn{
    background-color: blueviolet;
    color: #fafafa;
    font-size: 14px
}
.liveMsgBox{
    position: relative;
    width: 100%;
    height: 40vh;
}
.liveMsg{
    position: absolute;
    right: -30%;
}
.active{
    animation: liveMsg 5s linear;
    display: block
}
@keyframes liveMsg {
    0%{
        right: 0;
    }
    20%{
        right: 20%;
    }
    50%{
        right: 50%;
    }
    100%{
        right: 110%;
    }
}